package en.edu.scau.cmi.zhanzhiyong.carpter06;

class Leirenyuan{
	void crySpeak(String s) {
		System.out.println(s);
	}
}

class PeopleO extends Leirenyuan{
	void compute(int a,int b) {
		int result = a+b;
		System.out.println(result);
	}
	
	void crySpeak(String s) {
		System.out.println("***"+s+"***");
	}
}

public class Example6_7 {
	
	public static void main(String args[]) {
		Leirenyuan monkey = new PeopleO();
		monkey.crySpeak("hhhhh");
		PeopleO p = (PeopleO)monkey;
		p.compute(1, 1);
	}
}
